import { request } from '@ruifox-cms/utils'

// 获取用户信息
export function getUserInfo() {
    return request({
        url: '/auth/auth/userInfo',
        method: 'get'
    })
}
//获取全部用户
export function getUserList(params) {
    return request({
        url: '/provider/user/selectList',
        method: 'get',
        params
    })
}
//获取违规用户
export function selectPageManagerMarkedUser(params) {
  return request({
      
      url: '/comment/api/managerMarkedUser/selectPage',
      method: 'get',
      params
  })
}
// 获取当前用户菜单
export function getUserRoutes() {
  return request({
      url: '/auth/menu/selectSelf',
      method: 'get'
  })
}
//根据userId获取被标记留言
export function selectByMarkedManagerMarkedUser(params) {
  return request({
      
      url: '/comment/api/managerMarkedUser/selectByMarked',
      method: 'get',
      params
  })
}
//拉黑用户 
export function blockedManagerMarkedUser(data) {
  return request({
      
      url: '/comment/api/managerMarkedUser/blocked',
      method: 'post',
      data
  })
}
//解除禁言  
export function unmuteManagerMarkedUser(params) {
  return request({
      
      url: '/comment/api/managerMarkedUser/unmute',
      method: 'post',
      params
  })
}
//取消拉黑
export function unblockManagerMarkedUser(params) {
  return request({
      
      url: '/comment/api/managerMarkedUser/unblock',
      method: 'post',
      params
  })
}
//取消标记  
export function cancelMarkedManagerMarkedUser(params) {
  return request({
      
      url: '/comment/api/managerMarkedUser/cancelMarked',
      method: 'post',
      params
  })
}